package com.haha.onebot.entity;

import org.springframework.context.ApplicationEvent;

/**
 * 监听到的消息
 */
public class BotMessage extends ApplicationEvent {

    private final OneBotMessage oneBotMessage;

    private final String id;

    public BotMessage(Object source, OneBotMessage oneBotMessage, String id) {
        super(source);
        this.oneBotMessage = oneBotMessage;
        this.id = id;
    }

    public OneBotMessage getOneBotMessage() {
        return oneBotMessage;
    }

    public String getId() {
        return id;
    }
}
